<template>
  <div class="body">
    <!-- 头部 -->
    <div class="header">
      <div class="goleft">&lt;</div>
      <div class="hezuo">申请合作</div>
      <div></div>
    </div>
    <!-- 主体 -->
    <div class="banner">
      <div class="add" v-for="(item, index) in list" :key="index">
        <span>{{ item.name }}</span>
        <!-- <span>{{item.value}}</span> -->
        <input v-model="item.text" type="text" class="srk" :placeholder="item.value" />
      </div>
    </div>
    <!-- footer -->
    <div class="footer">
      <div class="foot">营业执照</div>
      <div class="imgs">
        <!-- 图片 -->
      <div class="img" v-for="(item, index) in num" :key="index" @click="imgss()">
        <div class="stop">1</div>
      </div>
      <!-- 添加 -->
      <div 
        class="img"
        @click="addPic"  
      >
        +
      </div>
      </div>
    </div>
    
  </div>
</template>
<script>
export default {
  name: "Login",
  data() {
    return {
      list: [
        {
          name: "公司/品牌",
          value: "请输入公司名称",
          text:''
        }, { 
          name: "您的名字", 
          value: "真实名字",
          text:''
        },
      ],
      num:2
    };
    
  },
  methods:{
    imgss(){
      console.log('图片预览')
    },
    addPic() {
      this.num++
    }
  }
};
</script>
<style lang="less" scoped>
.body {
  width: 100%;
  height: 100%;
  // background-color: #6666;
  .header {
    display: flex;
    height: 40px;
    line-height: 40px;
    background-color: #6666;
    justify-content: space-between;
    padding: 10px;
    color: #ffffff;
    .goleft {
      // padding-left: 20px;
      font-size: 20px;
    }
    .hezuo {
      font-size: 20px;
    }
  }
  .banner {
    margin-top: 10px;
    background-color: #fff;
    .add {
      display: flex;
      justify-content: space-between;
      height: 60px;
      border-bottom: 1px solid #666;
      align-items: center;
      padding: 0 10px;
      .srk {
        border: none;
      }
    }
  }
  .footer {
    // background-color: red;
    
    .foot{
      height: 60px;
      line-height: 60px;
      padding-left: 10px;
      
    }
    .imgs{
 display: flex;
      justify-content: space-around;
    }
    .img{
     width:100px;
     height:100px;

    //  background-color: #777;
     border-radius: 10px;
     border: 1px solid #666;
    }
  }
}
</style>